package org.polaris.org.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.polaris.basic.domain.BaseDomain;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department extends BaseDomain{

   private String name;
   private String intro;
   private Date createTime;
   private Date updateTime;

   private Department parent;
   private Employee manager;

   private Long managerId;
   private Long parentId;

   private String path;
   private Integer state;

   private List<Department> children;

}
